package net.asfun.jvalog.misc;

import java.util.List;

import net.asfun.jvalog.domain.Archive;
import net.asfun.jvalog.domain.Category;
import net.asfun.jvalog.domain.Comment;
import net.asfun.jvalog.domain.Link;
import net.asfun.jvalog.domain.Post;

public class AutoLoader {

	public static List<Category> getCategories() {
		return Category.listAll();
	}
	
	public static List<Comment> getComments() {
		return Comment.listRecent();
	}
	
	public static List<Link> getLinks() {
		return Link.listRoll();
	}
	
	public static List<Post> getPosts() {
		return Post.listRecent(Setting.getRecentPosts());
	}
	
	public static List<Archive> getArchives() {
		return Archive.listAll(18);
	}
}
